API: Add rawcontinue parameter to action=query
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 14 Aug 2014 17:18:07 +0000 (13:18 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Sat, 13 Sep 2014 18:16:25 +0000 (14:16 -0400)
Soon the simplified continuation will become the default for
action=query. This parameter will then serve select the return of the
raw continuation data. To allow for clients to transition without
"unrecognized parameter" warnings, I'd like to add the parameter now
before even adding deprecation warnings.

Change-Id: I5f6895b6a94c53a231a50707ee9463f91295da8f

includes/api/ApiQuery.php

index 3d6372c..8407fad 100644 (file)
@@ -526,6 +526,7 @@ class ApiQuery extends ApiBase {
                        'exportnowrap' => false,
                        'iwurl' => false,
                        'continue' => null,
+                       'rawcontinue' => false,
                );
                if ( $flags ) {
                        $result += $this->getPageSet()->getFinalParams( $flags );
@@ -608,6 +609,8 @@ class ApiQuery extends ApiBase {
                                'This parameter is recommended for all new development, and ' .
                                        'will be made default in the next API version.'
                        ),
+                       'rawcontinue' => 'Currently ignored. In the future, \'continue=\' will become the ' .
+                               'default and this will be needed to receive the raw query-continue data.',
                );
        }